from multiprocessing import Process,Pipe

def f(c_pipe):
    print(c_pipe.recv())
    print(c_pipe.recv())
    c_pipe.send('儿子吐水1')


def main():
    p_pipe,c_pipe = Pipe()
    process = Process(target=f,args=(c_pipe,))
    p_pipe.send('吐水1次')
    p_pipe.send('吐水2次')

    process.start()
    print('======')
    print(p_pipe.recv())
    print(p_pipe.recv()) # z阻塞了

if __name__ == '__main__':
    main()